package com.fat.spzx.manager.mapper;

import com.fat.spzx.model.dto.system.SysUserDto;
import com.fat.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserMapper {

    /**
     * 根据用户名查询用户数据
     */
    public abstract SysUser selectByUserName(String userName) ;

    /**
     * 根据用户名查询用户数据
     */
    List<SysUser> findByPageUser(SysUserDto sysUserDto);

    /**
     * 添加用户
     */
    void saveSysUser(SysUser sysUser);


    /**
     * 逻辑删除用户
     */
    void deleteById(Integer id);

    /**
     * 修改用户
     */
    void updateByUser(SysUser sysUser);
}
